package com.wealth.scsj.b_app.utils;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import com.wealth.scsj.b_app.view.activity.ChangeLoginPasswordActivity;
import com.wealth.scsj.b_app.view.activity.SettingActivity;
import com.wealth.scsj.b_app.view.activity.ShopSwitchPageActivity;
import com.wealth.scsj.b_app.view.activity.bankcardmodel.AddBankCardPicActivity;
import com.wealth.scsj.b_app.view.activity.bankcardmodel.VerificationCardActivity;
import com.wealth.scsj.b_app.bean.ShoperCommitInfoBean;
import com.wealth.scsj.b_app.view.activity.AddCommodityPageActivity;
import com.wealth.scsj.b_app.view.activity.BillDetailsPageActivity;
import com.wealth.scsj.b_app.view.activity.CommActivity;
import com.wealth.scsj.b_app.view.activity.EditingClassificationPageActivity;
import com.wealth.scsj.b_app.view.activity.GoodsManageActivity;
import com.wealth.scsj.b_app.view.activity.IncomActivity;
import com.wealth.scsj.b_app.view.activity.MyWalletActivity;
import com.wealth.scsj.b_app.view.activity.loginmodel.ForgetPasswordActivity;
import com.wealth.scsj.b_app.view.activity.loginmodel.LoginActivity;
import com.wealth.scsj.b_app.view.activity.loginmodel.RegisterActivity;
import com.wealth.scsj.b_app.view.activity.payment.CashBalanceActivity;
import com.wealth.scsj.b_app.view.activity.SurveyFeedbackActivity;
import com.wealth.scsj.b_app.view.activity.payment.ChangePaymentPasswordActivity;
import com.wealth.scsj.b_app.view.activity.payment.NewRetrievePasswordActivity;
import com.wealth.scsj.b_app.view.activity.payment.PaymentSettingsActivity;
import com.wealth.scsj.b_app.view.activity.payment.ResetPaymentPasswordActivity;
import com.wealth.scsj.b_app.view.activity.payment.WithdrawalRecordActivity;
import com.wealth.scsj.b_app.view.activity.shopregistermodel.RegisterFirstStepActivity;
import com.wealth.scsj.b_app.view.activity.shopregistermodel.RegisterFourStepActivity;
import com.wealth.scsj.b_app.view.activity.shopregistermodel.RegisterSecondStepActivity;
import com.wealth.scsj.b_app.view.activity.shopregistermodel.RegisterThirdStepActivity;
import com.wealth.scsj.b_app.view.activity.shopregistermodel.RegisterZeroStepActivity;
import com.wealth.scsj.b_app.view.activity.storesettingmodel.BusinessStatePageActivity;
import com.wealth.scsj.b_app.view.activity.storesettingmodel.CircleMasterDetailsPageActivity;
import com.wealth.scsj.b_app.view.activity.storesettingmodel.DistributionInformationPageActivity;
import com.wealth.scsj.b_app.view.activity.storesettingmodel.ShopAddressPageActivity;
import com.wealth.scsj.b_app.view.activity.storesettingmodel.ShopCommonPageActivity;
import com.wealth.scsj.b_app.view.activity.storesettingmodel.StoreSettingPageActivity;


/**
 * 跳转activity
 */

public class SkipUtils {

    /**
     * 忘记密码页面
     */
    public static void toForgetPswdPage(Context mContext) {
        Intent intent = new Intent(mContext, ForgetPasswordActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 登录页面
     */
    public static void toLogin(Context mContext) {
        Intent intent = new Intent(mContext, LoginActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 注册
     */
    public static void toRegisterPage(Context mContext) {
        Intent intent = new Intent(mContext, RegisterActivity.class);
        mContext.startActivity(intent);
    }
    /**
     * 意见反馈页面
     */
    public static void toSurveyFeedbackStep(Context mContext) {
        Intent intent = new Intent(mContext, SurveyFeedbackActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 商家注册第0步页面
     */
    public static void toRegisterZeroStep(Context mContext) {
        Intent intent = new Intent(mContext, RegisterZeroStepActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 商家注册第一步页面
     */
    public static void toRegisterFirstStep(Context mContext) {
        Intent intent = new Intent(mContext, RegisterFirstStepActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 商家注册第二步页面
     */
    public static void toRegisterSecondStep(Context mContext, ShoperCommitInfoBean shoperCommitInfoBean) {
        Intent intent = new Intent(mContext, RegisterSecondStepActivity.class);
        Bundle mBundle = new Bundle();
        mBundle.putSerializable("delivery_shopdata", shoperCommitInfoBean);
        intent.putExtras(mBundle);
        mContext.startActivity(intent);
    }

    /**
     * 商家注册第三步页面
     */
    public static void toRegisterThirdStep(Context mContext, ShoperCommitInfoBean shoperCommitInfoBean) {
        Intent intent = new Intent(mContext, RegisterThirdStepActivity.class);
        Bundle mBundle = new Bundle();
        mBundle.putSerializable("delivery_shopdata2", shoperCommitInfoBean);
        intent.putExtras(mBundle);
        mContext.startActivity(intent);
    }

    /**
     * 商家注册第四步页面
     */
    public static void toRegisterFourStep(Context mContext, ShoperCommitInfoBean shoperCommitInfoBean) {
        Intent intent = new Intent(mContext, RegisterFourStepActivity.class);
        Bundle mBundle = new Bundle();
        mBundle.putSerializable("delivery_shopdata3", shoperCommitInfoBean);
        intent.putExtras(mBundle);
        mContext.startActivity(intent);
    }

    /**
     * 修改/重置支付密码
     * 修改支付密码
     */
    public static void toChangePaymentPwd(Context mContext) {
        Intent intent = new Intent(mContext, ChangePaymentPasswordActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 重置支付密码
     */
    public static void toRetrievePaymentPwd(Context mContext) {
        Intent intent = new Intent(mContext, NewRetrievePasswordActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 重置支付密码
     */
    public static void toResetPaymentPwdWithCode(Context mContext, String SmsCode) {
        Intent intent = new Intent(mContext, ResetPaymentPasswordActivity.class);
        intent.putExtra("SmsCode", SmsCode);
        mContext.startActivity(intent);
    }

    /**
     * 跳转到钱包
     */
    public static void toMoney(Context mContext) {
        Intent intent = new Intent(mContext, MyWalletActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 预计收益
     * 跳转到 门店设置 主页面
     */
    public static void toStoreSettingPage(Context mContext) {
        Intent intent = new Intent(mContext, StoreSettingPageActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 订单列表
     */
    public static void toOrderDetail(Context mContext) {
        Intent intent = new Intent(mContext, IncomActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 跳转到 营业状态页面
     *
     * @param mContext
     */
    public static void toBusinessStatePage(Context mContext) {
        Intent intent = new Intent(mContext, BusinessStatePageActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 跳转到公用页面 type ==1 为店铺公告，type==2 为店铺电话
     */
    public static void toShopCommonPage(Context mContext, int type) {
        Intent intent = new Intent(mContext, ShopCommonPageActivity.class);
        intent.putExtra("type", type);
        mContext.startActivity(intent);
    }

    /**
     * 跳转到店铺地址
     */
    public static void toShopAddressPage(Context mContext) {
        Intent intent = new Intent(mContext, ShopAddressPageActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 跳转到门店设置-配送信息页面
     */
    public static void toDistributionInformationPage(Context mContext) {
        Intent intent = new Intent(mContext, DistributionInformationPageActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 跳转到门店设置-联系商圈圈主
     */
    public static void toCircleMasterDetailsPage(Context mContext) {
        Intent intent = new Intent(mContext, CircleMasterDetailsPageActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 跳转到 财务对账--支付设置
     */
    public static void toPaymentSettingsPage(Context mContext) {
        Intent intent = new Intent(mContext, PaymentSettingsActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 跳转到 财务对账--账单记录
     */
    public static void toWithdrawalRecordPage(Context mContext) {
        Intent intent = new Intent(mContext, WithdrawalRecordActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 跳转到 财务对账--预计收益
     */
    public static void toIncomPage(Context mContext) {
        Intent intent = new Intent(mContext, IncomActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 跳转到 财务对账--账单记录列表--账单详情页面
     */
    public static void toBillDetailsPage(Context mContext) {
        Intent intent = new Intent(mContext, BillDetailsPageActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 验证银行卡信息
     *
     * @param mContext
     */
    public static void toVerificationCard(Context mContext) {
        Intent intent = new Intent(mContext, VerificationCardActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 跳转到 门店运营--商品管理
     */

    public static void toGoodsManagePage(Context mContext) {
        Intent intent = new Intent(mContext, GoodsManageActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 跳转到 门店运营--评价管理
     */
    public static void toEvaluateManagePage(Context mContext) {
        Intent intent = new Intent(mContext, CommActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 添加銀行卡
     */
    public static void toAddBankCard(Context mContext) {
        Intent intent = new Intent(mContext, AddBankCardPicActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 跳转到 商品管理--新增商品
     */
    public static void toAddCommodityPage(Context mContext) {
        Intent intent = new Intent(mContext, AddCommodityPageActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 跳转到 商品管理--编辑商品
     */
    public static void toEditingClassificationPage(Context mContext) {
        Intent intent = new Intent(mContext, EditingClassificationPageActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 跳转到 设置页面
     */
    public static void toSetting(Context mContext) {
        Intent intent = new Intent(mContext, SettingActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 跳转到重置密码页面
     *
     * @param mContext
     */
    public static void toChangeLoginPWD(Context mContext) {
        Intent intent = new Intent(mContext, ChangeLoginPasswordActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 店铺切换
     *
     * @param mContext
     */
    public static void tochangeShop(Context mContext) {
        Intent intent = new Intent(mContext, ShopSwitchPageActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 调查反馈
     */
    public static void toCommBack(Context mContext) {
        Intent intent = new Intent(mContext, ShopSwitchPageActivity.class);
        mContext.startActivity(intent);
    }

    /**
     * 我要提现
     *
     * @param mContext
     */
    public static void toCashBalabce(Context mContext) {
        Intent intent = new Intent(mContext, SurveyFeedbackActivity.class);
        mContext.startActivity(intent);
    }
}
